import 'package:kkhousekeep/generated/json/base/json_field.dart';
import 'package:kkhousekeep/generated/json/repair_standard_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class RepairStandardListEntity {
	late int code;
	late List<RepairStandardListObj> obj;
	late String msg;

	RepairStandardListEntity();

	factory RepairStandardListEntity.fromJson(Map<String, dynamic> json) => $RepairStandardListEntityFromJson(json);

	Map<String, dynamic> toJson() => $RepairStandardListEntityToJson(this);

	RepairStandardListEntity copyWith({int? code, List<RepairStandardListObj>? obj, String? msg}) {
		return RepairStandardListEntity()
			..code= code ?? this.code
			..obj= obj ?? this.obj
			..msg= msg ?? this.msg;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class RepairStandardListObj {
	late int id;
	late String name;

	RepairStandardListObj();

	factory RepairStandardListObj.fromJson(Map<String, dynamic> json) => $RepairStandardListObjFromJson(json);

	Map<String, dynamic> toJson() => $RepairStandardListObjToJson(this);

	RepairStandardListObj copyWith({int? id, String? name}) {
		return RepairStandardListObj()
			..id= id ?? this.id
			..name= name ?? this.name;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}